<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script>
	if(typeof Object.create !=="function"){
		Object.create = function(obj){
			var F = function(){};
			F.prototype = new obj();
			return new F();
		}
	}
	var myMammal={
			name:"Herb the Mammal",
			get_name:function(){
				return this.name;
			},
			says:function(){
				return this.saying || "";
			}			
	};
	
	var myCat = Object.create(myMammal);
	myCat.name="Henrietta";
	myCat.saying = "meow";
	myCat.purr = function(n){
		var i,s ="";
		for(i=0;i<n;i++){
			if(s){
				s+="-";
			}
			s+="r";
		}
		return s;
	};
	myCat.get_name = function(){
		return this.says()+ " "+ this.name+" "+this.says();
	};
	
	pt(myCat.get_name());
	
	function pt(str){
		document.write("<br>"+str);
	}

	
	
</script>
</head>
<body>

</body>
</html>